package jdk5.meta;


import java.lang.reflect.Method;

import jdk5.annotation.TestTools;

import static java.lang.System.out;

public class RunTests{
        public static void main(String... args) throws Exception{
		/*
		 * int passed = 0; int failed = 0;
		 * 
		 * for(Method m : ForTest.class.getMethods()){
		 * if(m.isAnnotationPresent(Test.class)){ try{ m.invoke(null); passed++;
		 * }catch(Throwable ex){ failed++; out.printf("Test %s failed: %s%n",
		 * m.getName(), ex.getCause()); } } } out.printf("Passed: %d, failed %d%n",
		 * passed, failed);
		 */
       
        	//
        	TestTools tt = new TestTools(ForTest.class);
        	tt.run();
       }
}